function http({
    url,
    method="get",
    data
}) {
    let baseUrl="http://124.223.9.151:7000"
     return new Promise((resolve,reject)=>{
        wx.request({
          url: baseUrl + url,
          method:method,
          data:data,
          header:{
            //   "content-type":"application/x-www-form-urlencoded"
          },
          success:(res)=>{
              resolve(res.data)
          },
          fail:(err)=>{
              reject(err)
          }
        })
    })
}
export default http;
    
